use clap::Parser;

use crate::{arg_parse::Cli, utils::get_current_dir};

mod arg_parse;
mod mock;
mod server;
mod utils;

#[async_std::main]
async fn main() {
    let cli = Cli::parse();

    println!(
        "current workspace: {}",
        get_current_dir().display().to_string()
    );
    server::run(cli.ip, cli.port).await;
}
